package fr.mywiki.model;

import java.io.Serializable;

public interface ValueInterface extends Serializable{
	/**
	 * Returns the type of entity represented by this object.
	 * 
	 * @return a String object representing a type of object.
	 */
	public String getTypeEnt();
	
	/**
	 * Returns the value of the field of the current object. The kind of desired attribute is
	 * specified by the argument <code>attName</code>.
	 * 
	 * @param attName the name of the field
	 * @return an object which, once cast, corresponds to the value of the desired field.
	 */
	public Object get(String attName);
	
	/**
	 * Sets the value of the field of the current object.
	 * 
	 * @param attName the name of the attribute to be changed.
	 * @param value the new value of the field.
	 */
	public void set(String attName, Object value);
}
